﻿using System;
using Sustainalytics.Entities.ProductInvolvement;

namespace Sustainalytics.ProductInvolvement.BL
{
    public class PIValidationException: Exception
    {
        public PIValidationException(PIInputValidationErrors error, string text = "")
            : base("validation found " +  text + ", " + error.ToString())
        {

        }
        public PIValidationException(PIInputValidationErrors error, Exception ex)
            : base("validation found " + error.ToString(), ex)
        {

        }
    }
}
